﻿@model IEnumerable<Admin.Areas.Administration.Models.ModelViewHotelManager>

@{
    ViewBag.Title = "ListHotelManager";
    Layout = "~/Areas/Administration/Views/Shared/_Layout.cshtml";
}

<h2>ListHotelManager</h2>

<p>
    @Html.ActionLink("Create New", "CreateUseResult")
</p>

    <table class="table table-striped table-bordered bootstrap-datatable datatable">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.UserName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Fullname)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Phone)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Address)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsConfirm)
        </th>
        <th></th>
    </tr>

@foreach (var item in ViewBag.ListHotelManage)
{
    <tr>
        <td>
            @item.UserName
        </td>
        <td>
            @item.Fullname
        </td>
        <td>
            @item.Phone
        </td>
        <td>
            @item.Email
        </td>
        <td>
            @item.Address
        </td>
        <td>
            @if ((bool)item.IsConfirm)
            {
                 @Html.CheckBox("false",true,new { disabled = "disabled" })
            }
            else
            {
                 @Html.CheckBox("false",false,new { disabled = "disabled" })
            }
               
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>

